﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MtApi;

namespace MTEA.LIB.Analysis
{
    public static class MAAnalysis
    {
        public static double getMA5(this MtApiClient client, string symbol, int timeframes, int shift)
        {
            return client.iMA(symbol, timeframes, 5, 0, 0, 0, shift);
        }

        public static double getMA20(this MtApiClient client, string symbol, int timeframes, int shift)
        {
            return client.iMA(symbol, timeframes, 20, 0, 0, 0, shift);
        }
    }
}
